import request from '@/utils/request'

// 查询入库信息列表
export function listBusInStorage (query) {
  return request({
    url: '/storage/busInStorage/list',
    method: 'get',
    params: query
  })
}

// 查询入库信息详细
export function getBusInStorage (id) {
  return request({
    url: '/storage/busInStorage/' + id,
    method: 'get'
  })
}

// 新增入库信息
export function addBusInStorage (data) {
  return request({
    url: '/storage/busInStorage',
    method: 'post',
    data: data
  })
}

// 修改入库信息
export function updateBusInStorage (data) {
  return request({
    url: '/storage/busInStorage',
    method: 'put',
    data: data
  })
}

// 删除入库信息
export function delBusInStorage (id) {
  return request({
    url: '/storage/busInStorage/' + id,
    method: 'delete'
  })
}

// 导出入库信息
export function exportBusInStorage (query) {
  return request({
    url: '/storage/busInStorage/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/storage/busInStorage/getInitData/' + dictTypes,
    method: 'get'
  })
}
